package org.practice.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class RecommendAction extends Action{
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		// ������ݿ�Daoȡ���Ƽ�ͼ��
		// ���浽request������
//		CategoryDao dao=ShopDaoFactory.createCategoryDao();
//		Category category=dao.findCategoryById(Category.BOOK_ID);
//		request.setAttribute("cat1", category);		
//		response.setContentType("text/html");
//		PrintWriter out = response.getWriter();
//		out.println("<h1>dangdang</h1>");
		return mapping.findForward("success");
	}

}
